package com.xbongbong.pro.department.pojo;
/**
 * @author： 吴峰
 * @Desciption：
 * @Date： 16:21 2020-02-12
 * @Modified by：
 */

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 部门用户通用pojo
 * @author 吴峰
 * @version 1.0
 * @date 2020-02-12 16:21
 * @since 1.0
 **/
@Getter
@Setter
@ToString
public class DepartmentUserPojo implements Serializable {
    private static final long serialVersionUID = 9129564969580631669L;

    @NotNull(message = "{pojo.msg.DepartmentUserPojo.NotNull}")
    private Object id;

    private String name;

    /**
     * @see com.xbongbong.paas.enums.OptionalRangeEnum
     */
    private String type;

    private boolean isLeaf;

    public DepartmentUserPojo() {

    }

    public DepartmentUserPojo(Object id, String name, String type, boolean isLeaf) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.isLeaf = isLeaf;
    }

    public DepartmentUserPojo(@NotNull(message = "{pojo.msg.DepartmentUserPojo.NotNull}") Object id, String name) {
        this.id = id;
        this.name = name;
    }
}
